﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PSE.Framework.Versions.Common
{
    public class Util
    {
        private static object _lock = new object();
        private static Util _instance;
        private Util() { }
        public static Util Instance
        {
            get
            {
                lock (_lock)
                {
                    if (_instance == null)
                        _instance = new Util();

                    return _instance; 
                }
            }
        }

        public string CombineSystemNameAndMajorVersion(string productName, int majorVersion)
        {
            return string.Format("{0}-v{1}", productName, majorVersion);
        }
    }
}
